package iqq.util;

import iqq.App;
import iqq.common.IQQConstants;

import java.awt.Image;
import java.awt.Toolkit;
import java.io.File;
import java.net.URL;

/**
 * @author ChenZhiHui
 * @create-time 2013-3-6
 */
public class SettingUtils {

	public static Image getAppLogo() {
		return ImageManager.getImage(IQQConstants.ICON_DEF_QQ);
	}
	
	public static String getAppTitle() {
		return App.configuration.getProperty("app.name") + " For " + System.getProperty("os.name");
	}

	/**
	 * 获取 i18n 目录
	 * 
	 * @return i18n
	 */
	public static String getI18nDir() {
		return App.configuration.getProperty("i18n.dir");
	}

	/**
	 * 国际化资源文件
	 * 
	 * @return I18nBundle
	 */
	public static String getI18nBundle() {
		return getI18nDir() + "."
				+ App.configuration.getProperty("i18n.bundle_name");
	}
}
